package com.epam.task.web.entity;

import java.math.BigDecimal;

/**
 * User: zhunusbekova.arailym
 */
public class OrderProduct {

    private long id;
    private long orderProductId;
    private Product product;
    private int quantity;
    private BigDecimal price;


    public OrderProduct(long id, long orderProductId, Product product, int quantity, BigDecimal price) {
        this.id = id;
        this.orderProductId = orderProductId;
        this.product = product;
        this.quantity = quantity;
        this.price = price;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getOrderProductId() {
        return orderProductId;
    }

    public void setOrderProductId(long orderProductId) {
        this.orderProductId = orderProductId;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
}
